package com.lening.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/13 9:29
 */
@TableName("unit")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="单元", description="")
public class Unit {
    @ApiModelProperty(value = "主键")
    @TableId(value = "unit_id", type = IdType.ASSIGN_ID)
    private Long unitId;   //单元id
    private Long buildId;  //与楼宇主键关联
    private String unitName;  //单元名称
}
